 /* ==========================================================================
       DESIGN TOKENS & RESET
       ========================================================================== */
    :root {
      --blue-primary: #1565c0;
      --blue-secondary: #0d47a1;
      --blue-accent: #1e88e5;
      --blue-light: #e3f2fd;
      --blue-dark-bg: #0a192f;
      --card-bg: rgba(13, 37, 72, 0.95);

      --white: #ffffff;
      --text-main: #f0f4f8;
      --text-muted: #94a3b8;
      --text-subtle: #64748b;

      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'Fira Code', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--blue-dark-bg);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      padding-top: 110px; /* Space for fixed banner + nav */
    }

    /* ==========================================================================
       TOP RUNNING BANNER
       ========================================================================== */
    .top-banner {
      width: 100%;
      height: 35px;
      background: linear-gradient(90deg, var(--blue-secondary), var(--blue-accent));
      color: var(--white);
      font-size: 0.88rem;
      font-weight: 600;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .top-banner span {
      display: inline-block;
      white-space: nowrap;
      padding-left: 100%;
      animation: scrollBanner 24s linear infinite;
    }

    @keyframes scrollBanner {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

    /* ==========================================================================
       NAVBAR
       ========================================================================== */
    .top-navbar {
      width: 100%;
      position: fixed;
      top: 35px;
      left: 0;
      padding: 10px 24px;
      background: rgba(10, 25, 47, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(30, 136, 229, 0.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: all 0.3s ease;
      z-index: 1500;
    }

    .top-navbar.scrolled {
      background: rgba(8, 20, 38, 0.98);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      padding: 8px 24px;
    }

    /* Logo & Branding */
    .top-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .top-logo img {
      display: block;
      object-fit: contain;
      background: rgba(255, 255, 255, 0.05);
    }

    .top-logo.left img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .top-logo.right img {
      width: 40px;
      height: 40px;
      border-radius: 6px;
      border: 1.5px solid var(--blue-accent);
    }

    .brand-text-group {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      line-height: 1.2;
    }

    .brand-name {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      color: var(--white);
      white-space: nowrap;
      text-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
    }

    .brand-subtitle {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge-grade {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: #64b5f6;
      background: rgba(30, 136, 229, 0.15);
      border: 1px solid rgba(100, 181, 246, 0.3);
      padding: 1px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }

    .sub-dot {
      font-size: 0.6rem;
      color: var(--text-muted);
      opacity: 0.6;
    }

    .badge-subject {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    /* Links */
    .top-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .top-links a {
      color: var(--text-main);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      padding: 6px 2px;
      position: relative;
      transition: color 0.25s ease;
    }

    .top-links a::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0%;
      height: 2.5px;
      background: var(--blue-accent);
      transition: width 0.25s ease;
    }

    .top-links a:hover,
    .top-links a.active {
      color: var(--blue-light);
    }

    .top-links a:hover::after,
    .top-links a.active::after {
      width: 100%;
    }

    /* Header Right Actions */
    .top-right-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .nav-exit-btn {
      background: linear-gradient(135deg, #d32f2f, #b71c1c);
      color: var(--white);
      border: none;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 0.88rem;
      font-family: var(--font-body);
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-exit-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(211, 47, 47, 0.4);
    }

    /* Mobile Hamburger */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 26px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1600;
    }

    .nav-toggle span {
      display: block;
      height: 2.5px;
      width: 100%;
      background: var(--white);
      border-radius: 3px;
      transition: all 0.3s ease;
    }

    .nav-toggle.open span:nth-child(1) {
      transform: translateY(8.5px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
      transform: translateY(-8.5px) rotate(-45deg);
    }

    /* ==========================================================================
       EXIT CONFIRMATION MODAL
       ========================================================================== */
    .exit-modal-overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(5, 12, 26, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .exit-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .exit-modal-card {
      width: 90%;
      max-width: 380px;
      background: var(--card-bg);
      border: 1px solid rgba(41, 121, 255, 0.35);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(41, 121, 255, 0.2);
      transform: scale(0.92);
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .exit-modal-overlay.active .exit-modal-card {
      transform: scale(1);
    }

    .exit-modal-icon {
      font-size: 2.2rem;
      margin-bottom: 8px;
    }

    .exit-modal-title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
    }

    .exit-modal-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 22px;
    }

    .exit-modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
      flex: 1;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 9px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-modal-cancel {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--text-main);
    }

    .btn-modal-cancel:hover {
      background: rgba(255, 255, 255, 0.16);
      color: var(--white);
    }

    .btn-modal-confirm {
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }

    .btn-modal-confirm:hover {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
    }

    /* ==========================================================================
       SITE FOOTER
       ========================================================================== */
    .site-footer {
      position: relative;
      width: 100%;
      background: linear-gradient(180deg, rgba(8, 20, 38, 0.85) 0%, #060e1d 100%);
      border-top: 1px solid rgba(41, 121, 255, 0.25);
      color: var(--text-muted);
      margin-top: auto;
      overflow: hidden;
    }

    .footer-glow-bar {
      position: absolute;
      top: -1px;
      left: 10%;
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #2979ff, #60a5fa, transparent);
      box-shadow: 0 0 15px rgba(41, 121, 255, 0.6);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 50px 24px 35px 24px;
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 40px;
    }

    .footer-heading {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 18px;
      position: relative;
      display: inline-block;
    }

    .footer-heading::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 24px;
      height: 2px;
      background: var(--blue-accent);
      border-radius: 2px;
    }

    .footer-logo-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .footer-seal {
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .footer-brand-title {
      display: block;
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 3px;
    }

    .footer-tags {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .footer-desc {
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
      margin-bottom: 16px;
      max-width: 540px;
    }

    .footer-formula-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(41, 121, 255, 0.08);
      border: 1px solid rgba(41, 121, 255, 0.3);
      padding: 6px 14px;
      border-radius: 8px;
      box-shadow: inset 0 0 10px rgba(41, 121, 255, 0.05);
    }

    .footer-formula-pill code {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: #93c5fd;
    }

    .footer-specs-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .spec-item {
      display: flex;
      flex-direction: column;
      font-size: 0.85rem;
    }

    .spec-label {
      font-size: 0.75rem;
      color: var(--text-subtle);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
    }

    .spec-val {
      color: var(--text-main);
      font-weight: 500;
    }

    .footer-partner-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 6px 12px;
      border-radius: 8px;
      width: fit-content;
    }

    .footer-partner-logo img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
    }

    .footer-partner-logo span {
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
    }

    /* Footer Bottom Bar */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(4, 10, 20, 0.95);
      padding: 18px 24px;
    }

    .footer-bottom-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .copyright-text {
      font-size: 0.82rem;
      color: var(--text-subtle);
    }

    .copyright-text strong {
      color: var(--text-muted);
    }

    .back-to-top {
      color: #60a5fa;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 6px;
      background: rgba(41, 121, 255, 0.1);
      border: 1px solid rgba(41, 121, 255, 0.25);
      transition: all 0.2s ease;
    }

    .back-to-top:hover {
      background: rgba(41, 121, 255, 0.2);
      color: var(--white);
      transform: translateY(-2px);
    }

    /* ==========================================================================
       MEDIA QUERIES & RESPONSIVENESS
       ========================================================================== */
    @media screen and (max-width: 992px) {
      .nav-toggle {
        display: flex;
      }

      .nav-container {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 75px);
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(30, 136, 229, 0.3);
        padding: 30px 20px;
        transition: right 0.3s ease;
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5);
      }

      .nav-container.open {
        right: 0;
      }

      .top-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
      }

      .top-links a {
        font-size: 1.05rem;
        display: block;
        width: 100%;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media screen and (max-width: 600px) {
      body {
        padding-top: 100px;
      }

      .top-navbar {
        padding: 8px 14px;
      }

      .brand-name {
        font-size: 0.92rem;
      }

      .badge-grade,
      .badge-subject {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
      }

      .top-logo.left img,
      .top-logo.right img {
        width: 34px;
        height: 34px;
      }

      .nav-exit-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
      }

      .footer-container {
        padding: 36px 16px 24px 16px;
      }

      .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .footer-formula-pill {
        width: 100%;
        justify-content: center;
      }
    }/* ==========================================================
   LESSON 3.1 — OXIDATION NUMBERS
   GREEN & BLUE PROFESSIONAL EDUCATION THEME
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --ox31-green: #087b55;
  --ox31-green-dark: #064b38;
  --ox31-green-light: #e7f6ef;

  --ox31-blue: #1769aa;
  --ox31-blue-dark: #103e69;
  --ox31-blue-light: #eaf3fb;

  --ox31-teal: #08a99a;
  --ox31-text: #233b4a;
  --ox31-muted: #647b87;
  --ox31-border: #dce9e9;
  --ox31-white: #ffffff;
  --ox31-bg: #f4f9f8;
}

/* GLOBAL */

.ox31-lesson,
.ox31-lesson * {
  box-sizing: border-box;
}

.ox31-lesson {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;

  background: var(--ox31-bg);
  color: var(--ox31-text);

  font-family: 'Inter', sans-serif;
  line-height: 1.75;
}

.ox31-lesson h1,
.ox31-lesson h2,
.ox31-lesson h3,
.ox31-lesson h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.25;
}

.ox31-lesson p {
  margin-top: 0;
  color: var(--ox31-muted);
}

.ox31-lesson img {
  display: block;
  max-width: 100%;
}

.ox31-section {
  width: 100%;
  padding: 75px clamp(22px, 6vw, 100px);
}

.ox31-section-heading {
  width: 100%;
  margin-bottom: 38px;
  border-left: 5px solid var(--ox31-green);
  padding-left: 22px;
}

.ox31-section-heading > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ox31-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.ox31-section-heading h2 {
  margin: 0 0 10px;
  color: var(--ox31-blue-dark);
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 800;
}

.ox31-section-heading p {
  margin: 0;
  font-size: 14px;
}


/* ==========================================================
   HERO
   ========================================================== */

.ox31-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  width: 100%;
  min-height: 390px;
  padding: 65px clamp(25px, 7vw, 110px);

  background:
    radial-gradient(circle at 80% 40%,
    rgba(25, 188, 161, 0.25), transparent 35%),
    linear-gradient(115deg, #063e36, #087b68 55%, #145e91);

  color: white;
  overflow: hidden;
}

.ox31-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.ox31-label {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 20px;

  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;

  background: rgba(255,255,255,.1);
  color: #c4f6df;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.ox31-hero h1 {
  margin: 0 0 17px;
  color: white;
  font-size: clamp(37px, 5.2vw, 65px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.ox31-hero-content > p {
  max-width: 650px;
  color: #d4ecea;
  font-size: 15px;
  line-height: 1.9;
}

.ox31-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.ox31-hero-tags span {
  padding: 7px 13px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ATOM VISUAL */

.ox31-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.ox31-atom {
  position: relative;
  display: grid;
  place-items: center;
  width: 175px;
  height: 175px;
}

.ox31-nucleus {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ce2b3, #0b8ba3);
  color: white;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 0 35px rgba(45,225,190,.4);
}

.ox31-orbit {
  position: absolute;
  width: 145px;
  height: 65px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
}

.ox31-orbit-one {
  transform: rotate(45deg);
}

.ox31-orbit-two {
  transform: rotate(-45deg);
}

.ox31-electron {
  position: absolute;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #a5f3e0;
  color: #075c4d;
  font-weight: 800;
}

.ox31-electron-one {
  top: 20px;
  right: 25px;
}

.ox31-electron-two {
  bottom: 20px;
  left: 25px;
}

.ox31-hero-formula {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #d8f9ef;
  font-size: 12px;
}

.ox31-hero-formula strong {
  margin-bottom: 12px;
  color: white;
  font-size: 18px;
}


/* ==========================================================
   INTRODUCTION
   ========================================================== */

.ox31-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 45px;
  align-items: start;
}

.ox31-intro-text > p {
  font-size: 15px;
  line-height: 1.95;
}

.ox31-intro-text h3 {
  margin: 30px 0 12px;
  color: var(--ox31-green-dark);
  font-size: 23px;
}

.ox31-formula-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 25px;
  padding: 22px 25px;

  border-left: 4px solid var(--ox31-teal);
  background: #e9f6f3;
}

.ox31-formula-box span {
  color: var(--ox31-muted);
  font-size: 12px;
  font-weight: 700;
}

.ox31-formula-box strong {
  color: var(--ox31-blue-dark);
  font-size: 23px;
}

.ox31-formula-box small {
  color: var(--ox31-green);
  font-weight: 700;
}

.ox31-concept-cards {
  display: grid;
  gap: 15px;
}

.ox31-concept {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;

  border: 1px solid var(--ox31-border);
  border-radius: 9px;
  background: white;
  box-shadow: 0 5px 20px rgba(20,70,80,.04);
}

.ox31-concept-symbol {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 9px;
  background: var(--ox31-blue-light);
  color: var(--ox31-blue);
  font-size: 25px;
  font-weight: 800;
}

.ox31-concept h3 {
  margin: 0 0 8px;
  color: var(--ox31-blue-dark);
  font-size: 17px;
}

.ox31-concept p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.ox31-concept.positive {
  border-left: 4px solid #139a76;
}

.ox31-concept.negative {
  border-left: 4px solid #2878bd;
}

.ox31-concept.neutral {
  border-left: 4px solid #8b9ba4;
}


/* ==========================================================
   IONS AND IMAGE
   ========================================================== */

.ox31-ion-section {
  background: #eaf3f5;
}

.ox31-ion-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 45px;
  align-items: center;
}

.ox31-ion-description > p {
  font-size: 14px;
  line-height: 1.9;
}

.ox31-ion-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.ox31-ion-item {
  padding: 20px;
  border-radius: 8px;
  background: white;
  border-top: 4px solid var(--ox31-green);
}

.ox31-ion-item span,
.ox31-ion-item strong,
.ox31-ion-item small {
  display: block;
}

.ox31-ion-item span {
  margin-bottom: 10px;
  color: var(--ox31-blue-dark);
  font-weight: 700;
}

.ox31-ion-item strong {
  color: var(--ox31-green);
  font-size: 23px;
}

.ox31-ion-item small {
  color: var(--ox31-muted);
  font-size: 11px;
}

.ox31-image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 35px rgba(0,50,70,.1);
}

.ox31-image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f1f5f5;
}

.ox31-image-card figcaption,
.ox31-redox-image figcaption {
  padding: 15px 18px;
  color: var(--ox31-muted);
  font-size: 11px;
}

.ox31-lesson a {
  color: var(--ox31-blue);
  font-weight: 700;
  text-decoration: none;
}

.ox31-lesson a:hover {
  text-decoration: underline;
}


/* ==========================================================
   RULES
   ========================================================== */

.ox31-rules-section {
  background: #f7faf9;
}

.ox31-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ox31-rule {
  display: flex;
  gap: 20px;
  padding: 25px;

  border: 1px solid #dceae6;
  border-radius: 9px;
  background: white;

  box-shadow: 0 4px 16px rgba(20,70,80,.035);
  transition: transform .25s, box-shadow .25s;
}

.ox31-rule:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(20,70,80,.09);
}

.ox31-rule-number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;

  border-radius: 9px;
  background: linear-gradient(135deg, #087b55, #0c9e9a);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.ox31-rule h3 {
  margin: 2px 0 10px;
  color: var(--ox31-blue-dark);
  font-size: 19px;
}

.ox31-rule p {
  margin-bottom: 13px;
  font-size: 12px;
  line-height: 1.9;
}

.ox31-rule-example {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  padding: 10px 13px;
  border-radius: 5px;
  background: #edf7f4;
  color: var(--ox31-green-dark);
  font-size: 12px;
  font-weight: 600;
}

.ox31-rule-example strong {
  color: var(--ox31-blue);
}


/* ==========================================================
   STEPS
   ========================================================== */

.ox31-steps-section {
  background: linear-gradient(120deg, #e9f5f1, #eaf3fa);
}

.ox31-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ox31-step {
  padding: 28px;
  border-radius: 9px;
  background: white;
  box-shadow: 0 8px 25px rgba(30,75,90,.06);
}

.ox31-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.ox31-step-top > span {
  color: var(--ox31-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ox31-step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ox31-blue-light);
  color: var(--ox31-blue);
  font-size: 18px;
  font-weight: 800;
}

.ox31-step h3 {
  margin: 0 0 13px;
  color: var(--ox31-blue-dark);
  font-size: 20px;
}

.ox31-step p {
  min-height: 100px;
  font-size: 12px;
  line-height: 1.9;
}

.ox31-step-example {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border-left: 3px solid var(--ox31-green);
  background: #f0f8f5;
  color: var(--ox31-muted);
  font-size: 12px;
}

.ox31-step-example strong {
  color: var(--ox31-green-dark);
  font-size: 17px;
}

.ox31-important-note {
  margin-top: 25px;
  padding: 23px 28px;
  border-left: 5px solid var(--ox31-blue);
  border-radius: 5px;
  background: white;
}

.ox31-important-note > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ox31-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ox31-important-note p {
  margin: 5px 0;
  color: var(--ox31-blue-dark);
  font-size: 14px;
  font-weight: 700;
}


/* ==========================================================
   WORKED EXAMPLES
   ========================================================== */

.ox31-example-section {
  background: white;
}

.ox31-worked-example {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 0;
  overflow: hidden;

  border: 1px solid var(--ox31-border);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(15,65,75,.06);
}

.ox31-example-left {
  padding: 35px;
  background: linear-gradient(145deg, #075c48, #087d78);
  color: white;
}

.ox31-example-badge {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  color: #d0fff0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ox31-example-left h3 {
  margin: 35px 0 4px;
  color: white;
  font-size: clamp(35px, 4vw, 55px);
}

.ox31-example-left > p {
  color: #d1eee8;
  font-size: 13px;
}

.ox31-molecule {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  margin: 35px 0;
  padding: 20px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.ox31-molecule span {
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.ox31-example-legend {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.ox31-example-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2f8f2;
  font-size: 11px;
}

.ox31-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-blue {
  background: #7cbfff;
}

.dot-green {
  background: #7de9bd;
}

.dot-orange {
  background: #ffca75;
}

.ox31-example-right {
  padding: 35px clamp(20px, 4vw, 45px);
}

.ox31-example-right > h3 {
  margin: 0 0 25px;
  color: var(--ox31-blue-dark);
  font-size: 25px;
}

.ox31-solution-step {
  position: relative;
  margin-bottom: 25px;
  padding-left: 18px;
  border-left: 2px solid #cce8dc;
}

.ox31-solution-step > span {
  display: block;
  margin-bottom: 5px;
  color: var(--ox31-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ox31-solution-step h4 {
  margin: 0 0 12px;
  color: var(--ox31-blue-dark);
  font-size: 15px;
}

.ox31-equation {
  width: fit-content;
  max-width: 100%;
  margin: 7px 0;
  padding: 8px 13px;
  border-radius: 5px;
  background: #eff6f5;
  color: #145b60;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.ox31-answer {
  padding: 20px;
  border-left: 4px solid #08a779;
  border-radius: 5px;
  background: #eaf8f1;
}

.ox31-answer span {
  display: block;
  color: var(--ox31-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ox31-answer strong {
  display: block;
  margin: 5px 0;
  color: var(--ox31-green-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 35px;
}

.ox31-answer p {
  margin: 0;
  color: var(--ox31-green-dark);
  font-size: 12px;
  font-weight: 600;
}

/* EXAMPLE 2 */

.ox31-example-two {
  background: #edf5f8;
}

.ox31-example-two .ox31-worked-example {
  background: white;
}

.ox31-manganese {
  background: linear-gradient(145deg, #153d72, #087d82);
}

.ox31-chem-visual {
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: 30px 0;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
}

.ox31-chem-visual img {
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}


/* ==========================================================
   REDOX
   ========================================================== */

.ox31-redox-section {
  background: #f4f9f8;
}

.ox31-redox-grid {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 20px;
}

.ox31-redox-card {
  padding: 32px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 25px rgba(30,70,80,.06);
}

.ox31-redox-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ox31-green-light);
  color: var(--ox31-green);
  font-size: 22px;
  font-weight: 800;
}

.ox31-redox-card > span {
  color: var(--ox31-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.ox31-redox-card h3 {
  margin: 8px 0 12px;
  color: var(--ox31-blue-dark);
  font-size: 25px;
}

.ox31-redox-card p {
  font-size: 13px;
  line-height: 1.9;
}

.ox31-redox-equation {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  background: #eaf5f1;
  color: var(--ox31-green-dark);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.ox31-reduction .ox31-redox-icon {
  background: var(--ox31-blue-light);
  color: var(--ox31-blue);
}

.ox31-reduction > span {
  color: var(--ox31-blue);
}

.ox31-reduction .ox31-redox-equation {
  background: var(--ox31-blue-light);
  color: var(--ox31-blue-dark);
}

.ox31-redox-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--ox31-green);
}

.ox31-redox-center span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ox31-redox-center strong {
  font-size: 45px;
}

.ox31-redox-center small {
  color: var(--ox31-muted);
  font-size: 10px;
  text-align: center;
}

.ox31-redox-image {
  width: 100%;
  margin: 35px 0 0;
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 30px rgba(30,70,80,.07);
}

.ox31-redox-image img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: white;
}


/* ==========================================================
   KEY TERMS
   ========================================================== */

.ox31-key-section {
  background: linear-gradient(120deg, #e7f5ef, #e9f2fa);
}

.ox31-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ox31-key-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(20,100,90,.1);
  border-radius: 9px;
  background: white;
}

.ox31-key-card > span {
  display: block;
  margin-bottom: 20px;
  color: #91cdb7;
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
}

.ox31-key-card h3 {
  margin: 0 0 12px;
  color: var(--ox31-blue-dark);
  font-size: 19px;
}

.ox31-key-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
}

.ox31-final-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
  padding: 35px;

  border-radius: 9px;
  background: linear-gradient(110deg, #07543e, #087b78, #145b91);
}

.ox31-final-banner > div:first-child {
  max-width: 750px;
}

.ox31-final-banner span {
  color: #b7f4dc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.ox31-final-banner h2 {
  margin: 10px 0;
  color: white;
  font-size: clamp(22px, 3vw, 32px);
}

.ox31-final-banner p {
  margin: 0;
  color: #d3eae6;
  font-size: 13px;
}

.ox31-final-symbol {
  color: rgba(255,255,255,.22);
  font-family: 'Outfit', sans-serif;
  font-size: 100px;
  font-weight: 800;
}


/* ==========================================================
   RESPONSIVE TABLET
   ========================================================== */

@media (max-width: 1000px) {

  .ox31-hero {
    grid-template-columns: 1fr .6fr;
    padding: 55px 35px;
  }

  .ox31-atom {
    transform: scale(.8);
  }

  .ox31-intro-grid,
  .ox31-ion-layout {
    grid-template-columns: 1fr;
  }

  .ox31-rule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ox31-steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ox31-key-grid {
    grid-template-columns: 1fr 1fr;
  }

}


/* ==========================================================
   RESPONSIVE MOBILE
   ========================================================== */

@media (max-width: 650px) {

  .ox31-section {
    padding: 48px 18px;
  }

  .ox31-hero {
    grid-template-columns: 1fr;
    padding: 48px 23px;
  }

  .ox31-hero h1 {
    font-size: 37px;
  }

  .ox31-hero-visual {
    justify-content: flex-start;
    margin-top: 15px;
  }

  .ox31-atom {
    transform: scale(.75);
    transform-origin: left center;
    margin-right: -20px;
  }

  .ox31-section-heading {
    padding-left: 15px;
    margin-bottom: 28px;
  }

  .ox31-section-heading h2 {
    font-size: 27px;
  }

  .ox31-intro-grid,
  .ox31-ion-layout {
    gap: 25px;
  }

  .ox31-rule-grid,
  .ox31-steps-grid,
  .ox31-key-grid {
    grid-template-columns: 1fr;
  }

  .ox31-rule {
    padding: 19px;
    gap: 13px;
  }

  .ox31-rule h3 {
    font-size: 17px;
  }

  .ox31-ion-examples {
    grid-template-columns: 1fr;
  }

  .ox31-step p {
    min-height: auto;
  }

  .ox31-worked-example {
    grid-template-columns: 1fr;
  }

  .ox31-example-left,
  .ox31-example-right {
    padding: 25px 20px;
  }

  .ox31-example-left h3 {
    margin-top: 22px;
  }

  .ox31-redox-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ox31-redox-center {
    padding: 10px;
  }

  .ox31-redox-center strong {
    transform: rotate(90deg);
  }

  .ox31-redox-card {
    padding: 24px;
  }

  .ox31-final-banner {
    padding: 25px 20px;
  }

  .ox31-final-symbol {
    display: none;
  }

  .ox31-equation {
    font-size: 15px;
  }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

  .ox31-hero h1 {
    font-size: 31px;
  }

  .ox31-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ox31-rule {
    flex-direction: column;
  }

  .ox31-molecule span {
    font-size: 23px;
  }

}
